//
//  ViewController.m
//  Embedded-WebServer
//
//  Created by Ampaw on 2019/2/26.
//  Copyright © 2019年 Ampaw. All rights reserved.
//

#import "ViewController.h"
#import "GameBox/BYGameBoxManager.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    UIButton *btn = [[UIButton alloc] initWithFrame:CGRectMake(50, 100, 100, 44)];
    [btn setTitleColor:[UIColor blueColor] forState:UIControlStateNormal];
    [btn setTitle:@"调试" forState:UIControlStateNormal];
    [btn addTarget:self action:@selector(test) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn];
}

- (void)test {
    NSLog(@"%s",__FUNCTION__);
    
    [[BYGameBoxManager manager] addViewToKeyWindow];
}

@end
